#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define N 1024
int main()
{   
    char buf[N];
    char *cwd=getcwd(buf, sizeof(buf));
    if (NULL == cwd) {
        exit(-1);
    } else {
        printf("%s\n",cwd);
    }
    return 0;
}
